# 输入三个整数
number1 = int(input())
number2 = int(input())
number3 = int(input())

# 对 number1,number2,number3 按升序排列

if number1 > number2:
    number1,number2 = number2,number1

if number2 > number3:
    number2,number3 = number3,number2
    
if number1 > number2:
    number1,number2 = number2,number1

# 此时 number1,number2,number3 已经按升序排好
print(number1)
print(number2)
print(number3)
